package com.core;

import java.util.List;


public class ListUtils {

    public static <T> T listItemAtIndex ( List <T> list,
                                          int itemIndex ) {

        if ( list == null ) {
            return null;
        }

        if ( itemIndex < 0 ) {
            return null;
        }

        if ( itemIndex >= list.size() ) {
            return null;
        }

        return list.get(itemIndex);

    }
}
